package utils

import (
	"gitee.com/gldmmhh/bbs/data_access"
	entityUser "gitee.com/gldmmhh/kiteclient/kitex_gen/user"
)

func DaUserToUser(daUser *data_access.User) *entityUser.User {
	return &entityUser.User{
		Id:          daUser.Id,
		Name:        daUser.Name,
		Type:        daUser.Type,
		FollowNum:   daUser.FollowNum,
		FollowerNum: daUser.FollowerNum,
		PostNum:     daUser.PostNum,
	}
}
